import { CTX, IViewProvider } from '@ibiz-template/runtime';
import { IAppDEGridView } from '@ibiz/model-core';
import { ExpendGridViewController } from './controller';

/**
 * 扩展表格视图适配器
 *
 * @export
 * @class ExpendGridViewProvider
 * @extends {ViewProvider}
 */
export class ExpendGridViewProvider implements IViewProvider {
  component: string = 'IBizView';

  createController(
    model: IAppDEGridView,
    context: IContext,
    params?: IParams,
    ctx?: CTX,
  ): ExpendGridViewController {
    return new ExpendGridViewController(model, context, params, ctx);
  }
}
